#include <stdio.h>
#include <string.h>
#include "skiplist.h"

int compareChar(void* a, void* b)
{
    const char* str_a = *((const char**)a);
    const char* str_b = *((const char**)b);
    return strcmp(str_a, str_b); 
}

int main()
{
    g_compare = compareChar;

    SkipList*skiplist = skiplist_init();

    char *key = "a";
    char *value = "zhw";
    skiplist_insert(skiplist,&key,&value);

    char *key1 = "b";
    char *value1 = "1234";
    skiplist_insert(skiplist,&key1,&value1);

    char *key2 = "c";
    char *value2 = "sfs";
    skiplist_insert(skiplist,&key2,&value2);

    skiplist_print(skiplist);
    return 0;
}